package com.bst.bsj.portal.util;

public class RedisKeyUtil {

    public static final String METADATA_SERVICE = "portal";
    public static final String KEY_FIELD_COLON  = ":";

    public static String assemblyServiceKey(String type, String extra) {
        return METADATA_SERVICE + KEY_FIELD_COLON + type + KEY_FIELD_COLON + extra;
    }

    public static String assemblyGenericIdKey(String type) {
        return METADATA_SERVICE + KEY_FIELD_COLON + type;
    }
}
